package com.android.wechat.msg.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.android.common.utils.PageUtils;
import com.android.common.utils.Query;

import com.android.wechat.msg.dao.TMsgDao;
import com.android.wechat.msg.entity.TMsgEntity;
import com.android.wechat.msg.service.TMsgService;


@Service("tMsgService")
public class TMsgServiceImpl extends ServiceImpl<TMsgDao, TMsgEntity> implements TMsgService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TMsgEntity> page = this.page(
                new Query<TMsgEntity>().getPage(params),
                new QueryWrapper<TMsgEntity>()
        );

        return new PageUtils(page);
    }

}